package com.oa.admin.mapper;

import com.oa.admin.entity.CarApplication;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用车申请记录表 Mapper 接口
 * </p>
 *
 * @author syb123
 * @since 2019-02-21
 */
@Repository
public interface CarApplicationMapper extends BaseMapper<CarApplication> {
    /**
     * 分页查询列表
     *
     * @param page
     * @return
     */
    List<CarApplication> findList(Pagination page);

    /**
     * 查询所有列表
     *
     * @return
     */
    List<CarApplication> findList();

    /**
     * 根据id查询
     */
    CarApplication findById(@Param("id") String id);

}
